package org.oos.dao.options;

import com.google.api.client.util.Key;

/**
 * Provides with the options for paging
 * 
 * @author pablo.gonzalez@11870.com
 * 
 */
public class PageOptions extends OptionsMap {

	@Key("count")
	private Integer pageSize = 10;

	@Key
	private Integer page;

	public PageOptions() {
	}

	public PageOptions(Integer pageSize, Integer page) {
		super();
		this.pageSize = pageSize;
		this.page = page;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	@Override
	public String toString() {
		return "[" + page + ", " + pageSize + "]";
	}

	@Override
	public void clear() {
		pageSize = null;
		page = null;
	}

}
